package cn.shlbysj.demo.common;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;

import java.io.Serializable;

/**
 * 返回结果封装 数据返回格式 app端
 * @author Administrator
 *
 */
@ApiModel(value="Result",description="返回对象实体")
public class Result implements Serializable {

    @ApiModelProperty(value="用于认证是否请求成功",name="total",required=false)
    private int  code;//用于认证是否请求成功

    @ApiModelProperty(value="返回消息",name="total",required=false)
    private String msg;//返回消息

    @ApiModelProperty(value="返回值,数据",name="value",required=false)
    private String value;//返回值,数据

    @ApiModelProperty(value="返回数据 认证签名",name="sign",required=false)
    private String sign;//返回数据 认证签名


    public Result(int code, String msg,String value,String sign) {
        this.code = code;
        this.msg = msg;
        this.value = value;
        this.sign = sign;
    }

    public int getCode() {
        return code;
    }

    public void setCode(int code) {
        this.code = code;
    }

    public String getMsg() {
        return msg;
    }

    public void setMsg(String msg) {
        this.msg = msg;
    }

    public String getValue() {
        return value;
    }

    public void setValue(String value) {
        this.value = value;
    }

    public String getSign() {
        return sign;
    }

    public void setSign(String sign) {
        this.sign = sign;
    }
}
